import {Vue, Component} from "vue-property-decorator";

@Component({
    components: {}
})
export default class StateConfig extends Vue {
    drawWidth = window.innerWidth * 0.77
    noData = false;

    setDataState(list: any, loadState: string) {
        if ((list ?? []).length == 0 && loadState != 'loading') {
            this.noData = true;
        } else {
            this.noData = false;
        }
        return this.noData;
    }
}